package com.ds.dsm.view.config.gallery;

import com.ds.config.ResultModel;
import com.ds.config.TreeListResultModel;
import com.ds.enums.db.MethodChinaName;
import com.ds.esd.custom.annotation.CustomAnnotation;
import com.ds.esd.custom.buttonviews.annotation.ButtonViewsAnnotation;
import com.ds.esd.custom.module.annotation.DynLoadAnnotation;
import com.ds.esd.custom.module.annotation.ModuleAnnotation;
import com.ds.esd.custom.nav.annotation.NavGroupViewAnnotation;
import com.ds.esd.custom.nav.tab.buttonviews.NavButtonViewsViewAnnotation;
import com.ds.esd.tool.ui.component.tab.SideBarStatusType;
import com.ds.esd.tool.ui.enums.BarLocationType;
import com.ds.esd.tool.ui.enums.Dock;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@RequestMapping(path = "/dsm/view/config/gallery/")
@MethodChinaName(cname = "列表配置")
@ButtonViewsAnnotation(barLocation = BarLocationType.top, sideBarStatus = SideBarStatusType.expand, barSize = "3em")
public class GalleryConfigView {


    @CustomAnnotation(pid = true, hidden = true)
    private String sourceClassName;
    @CustomAnnotation(pid = true, hidden = true)
    private String projectId;
    @CustomAnnotation(pid = true, hidden = true)
    private String viewInstId;
    @CustomAnnotation(pid = true, hidden = true)
    private String domainId;
    @CustomAnnotation(hidden = true, uid = true)
    String methodName;

    public GalleryConfigView() {

    }


    @RequestMapping(method = RequestMethod.POST, value = "GalleryInfoGroup")
    @NavGroupViewAnnotation(reSetUrl = "clear", saveUrl = "updateGalleryConfig",autoSave = true)
    @ModuleAnnotation(dock = Dock.fill, index = 0, caption = "基础信息", imageClass = "spafont spa-icon-project")
    @ResponseBody
    public ResultModel<GalleryInfoGroup> getFormInfoGroup(String sourceClassName, String methodName,String domainId, String viewInstId) {
        ResultModel<GalleryInfoGroup> result = new ResultModel<GalleryInfoGroup>();
        return result;

    }

    @MethodChinaName(cname = "动作事件")
    @RequestMapping(method = RequestMethod.POST, value = "GalleryActionGroup")
   @DynLoadAnnotation
    @NavButtonViewsViewAnnotation
    @ModuleAnnotation(dock = Dock.fill, caption = "动作事件", imageClass = "spafont spa-icon-action")
    @ResponseBody
    public ResultModel<GalleryActionGroup> getGalleryActionGroup(String sourceClassName, String methodName,String domainId, String viewInstId) {
        ResultModel<GalleryActionGroup> result = new ResultModel<GalleryActionGroup>();

        return result;

    }

    @MethodChinaName(cname = "窗体配置")
    @RequestMapping(method = RequestMethod.POST, value = "GalleryDataGroup")
   @DynLoadAnnotation
    @NavButtonViewsViewAnnotation
    @ModuleAnnotation(dock = Dock.fill, caption = "窗体配置", imageClass = "spafont spa-icon-values")
    @ResponseBody
    public ResultModel<GalleryDataGroup> getGalleryDataGroup(String sourceClassName, String methodName,String domainId, String viewInstId) {
        ResultModel<GalleryDataGroup> result = new ResultModel<GalleryDataGroup>();

        return result;

    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getSourceClassName() {
        return sourceClassName;
    }

    public void setSourceClassName(String sourceClassName) {
        this.sourceClassName = sourceClassName;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getViewInstId() {
        return viewInstId;
    }

    public void setViewInstId(String viewInstId) {
        this.viewInstId = viewInstId;
    }

    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }
}
